package de.hska.pwmanager.controller;

import java.util.List;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import de.hska.pwmanager.persistence.model.PasswordCategory;

public interface IPasswordCategoryController {

	@RequestMapping(value = "read")
	public @ResponseBody
	abstract List<PasswordCategory> readAll();

	@RequestMapping(value = "create")
	public abstract @ResponseBody void createOrUpdate(
			@RequestBody PasswordCategory toCreateOrUpdate);

	@RequestMapping(value="delete/{id}")
	public abstract @ResponseBody void delete(@RequestBody Long primaryKey);

	public abstract @ResponseBody void validate(PasswordCategory toValidate);

	public abstract PasswordCategory readByPK(Long pk);

}